package serialize

type Serialize interface {
	Encode(content interface{}) ([]byte, error)
	Decode(bytes []byte, obj interface{}) error
}

func CreateSerializer(t string) (s Serialize) {
	switch t {
	default:
		s = new(JsonSerialize)
		break
	}
	return
}
